package com.xinruke.hostels.reservation.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author GuoZheng
 * @ClassName RestaurantListQueryResultDto
 * @date：2019/6/19
 * @version: V1.0.0
 * @description：
 */
@ApiModel("餐厅预订列表请求结果DTO")
@Data
public class RestaurantListQueryResultDto {

    @ApiModelProperty(value = "订单id")
    private Integer id;
    /**
     * 酒店id
     */
    @ApiModelProperty(value = "酒店id", required = true)
    private Integer jiudianId;

    /**
     * 酒店名称
     */
    @ApiModelProperty(value = "酒店名称", required = false)
    private String jiudianmingcheng;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    private String dingdanhao;

    /**
     * 预订人姓名
     */
    @ApiModelProperty(value = "预订人姓名")
    private String yudingrenxingming;

    /**
     * 预订人电话
     */
    @ApiModelProperty(value = "预订人电话")
    private String yudingrendianhua;


    /**
     * 开始时间：格式YYYY-MM-DD HH:MM精确到分
     */
    @ApiModelProperty(value = "开始时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date kaishishijian;

    /**
     * 结束时间：格式YYYY-MM-DD HH:MM精确到分
     */
    @ApiModelProperty(value = "结束时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date jieshushijian;

    /**
     * 用餐人数
     */
    @ApiModelProperty(value = "用餐人数", required = true)
    @NotNull(message = "用餐人数不能为空")
    private Integer yongcanrenshu;

    /**
     * 建议调整时间
     */
    @ApiModelProperty(value = "建议调整时间")
    private Date jianyitiaozhengshijian;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String beizhu;

    /**
     * 餐厅id
     */
    @ApiModelProperty(value = "餐厅id", required = true)
    private Integer cantingId;

    /**
     * 用餐名称
     */
    @ApiModelProperty(value = "用餐名称", required = false)
    private String yongcanmingcheng;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Byte zhuangtai;

    /**
     * 状态名称
     */
    @ApiModelProperty(value = "状态名称")
    private String zhuangtaiMingCheng;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date chuangjianshijian;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gengxinshijian;


    /**
     * 用餐选项，以","分隔
     */
    @ApiModelProperty(value = "用餐选项，以\",\"分隔", required = true)
    @NotNull(message = "用餐选项不能为空")
    private String yongcanxuanxiang;

}
